package main

import (
	"common/api"
	"common/middleware"
	"github.com/gin-gonic/gin"
	"log"
)

func main() {
	app := gin.Default()

	//注册中间件
	middleware.MiddleRegister(app)

	//注册路由
	api.RouterRegister(app)

	err := app.Run(":8066")
	if err != nil {
		log.Printf("app.Run err: %v", err)
		return
	}
}
